<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="/WEB-INF/template.xhtml">

    <ui:define name="title">
        MultiSelectListbox
    </ui:define>

    <ui:define name="description">
        MultiSelectListbox is used to select an item from a collection of listboxes that are in parent-child relationship.
    </ui:define>

    <ui:param name="documentationLink" value="/components/multiselectlistbox" />

    <ui:define name="implementation">

        <h:form>
            <p:multiSelectListbox value="#{multiSelectView.selection}" effect="slide" header="Categories" showHeaders="true">
                <f:selectItems value="#{multiSelectView.categories}" />
            </p:multiSelectListbox>

            <p:commandButton value="Save" icon="pi pi-check" update="out" style="display:block;margin:10px 0" />

            <h:outputText id="out" value="Value: #{multiSelectView.selection}" style="display:block" />
        </h:form>
        
    </ui:define>

</ui:composition>